<?php

/**
 * Description of g
 * 
 * @author 叶风
 * Qq:    355007778
 * Email: ye.fn@163.com
 */

namespace c\company;

class g extends \control
{
    var $table = 'company';
    
    function index_searchWord()
    {
        $word = $this->db->escape($_GET['w']);
		$w = "name LIKE '%$word%' OR py LIKE '$word%' OR id='$word'";
        $res = $this->db->get($this->table, '*', $w, '', 20);
    	ajax_json(array('status'=>TRUE, 'res'=>$res));
    }
    
    
}
